//
//  ATStepNumberManager.h
//  ATGaode_demo
//
//  Created by Chengquan Ye on 2019/3/8.
//  Copyright © 2019年 Chengquan Ye. All rights reserved.
//  跑步步数管理

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol ATStepNumberManagerDelegate <NSObject>

@optional
- (void)stepNumber:(NSDictionary *)dict;

@end

@interface ATStepNumberManager : NSObject

/** 代理 */
@property (nonatomic, weak) id<ATStepNumberManagerDelegate> delegate;

+ (instancetype)manager;

/** 计算一个时间段步数
 * startDate: 开始时间
 * endDate: 结束时间
 */
- (void)stepNumberWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;

/** 开始计算步数, 实时
 * startDate: 开始时间
 */
- (void)startCountingStepNumber:(NSDate *)startDate;

/** 停止计步 */
- (void)stopCountingStepNumber;

@end

NS_ASSUME_NONNULL_END
